package <#if applicationPackage??>${applicationPackage}.</#if>model.viewModel;

import android.databinding.Bindable;
import com.jone.base.model.viewModel.BaseLoadDataViewModel;
<#if applicationPackage??>
import ${applicationPackage}.BR;
</#if>
import <#if applicationPackage??>${applicationPackage}.</#if>model.viewModel.interfaces.${iViewName};

/**
 *  {@link ${packageName}.${activityClass}} 对应ViewModel
 */
public class ${viewModelClass} extends BaseLoadDataViewModel{
     private ${iViewName} mView;
     public ${viewModelClass}(${iViewName} view)
     {
         this.mView = view;
     }

    @Override
    public boolean hasDataAlready() {
      //TODO 判断是否已经有数据
        return false;
    }

    @Override
    public void loadData() {
     //TODO 加载数据
     //加载完成记得掉该方法 mView.loadCompleted();
    }
}
